<template>
  <section class="m-card m-list-table">
    <div class="list-title">
      <slot />
      <div class="right">
      </div>
    </div>
    <ym-table :data='data'
              :total="total"
              :loading='loading'
              :options="options"
              limit-height
              border
              :currentPage="currentPage"
              :perPage="perPage"
              @load='handlerLoad'></ym-table>

  </section>
</template>
<script>
import dayjs from 'dayjs'
import { cloneDeep } from 'lodash'
import listTable from '@/views/mixins/list-table'
export default {
  mixins: [listTable],
  data () {
    return {
      options: {
        config: [
          {
            label: '标识',
            width: '100',
            render: (h, params) => {
              return h('div', params.row.id)
            }
          },
          {
            label: '区域',
            render: (h, params) => {
              return h('div', params.row.area && params.row.area.名称)
            }
          },
          {
            label: '收货人',
            render: (h, params) => {
              return h('div', params.row.收货人)
            }
          },
          {
            label: '收货人电话',
            render: (h, params) => {
              return h('div', params.row.收货人电话)
            }
          },
          {
            label: '详细地址',
            render: (h, params) => {
              return h('div', params.row.详细地址)
            }
          },
          {
            label: '状态',
            align: 'center',
            width: '100',
            render: (h, params) => {
              return h('div', params.row.NodeType && params.row.NodeType.namecode)
            }
          }
        ]
      }
    }
  },
  mounted () {
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
</style>
